// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
package fl.controls;
	
import fl.core.InvalidationType;
import fl.core.UIComponent;
import fl.events.ComponentEvent;
import flash.display.DisplayObject;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
import flash.utils.Timer;


extern class BaseButton extends UIComponent {
	var background:DisplayObject;
	var mouseState:String;
	var _selected:Bool = false;
	var _autoRepeat:Bool = false;
	var pressTimer:Timer;
	
	public static function getStyleDefinition():Dynamic;
	public function new():Void;
	public var enabled(dynamic, dynamic):Bool;
	public var selected(dynamic, dynamic):Bool;
	public var autoRepeat(dynamic, dynamic):Bool;
	public var mouseStateLocked(dynamic, null):Void;
	public function setMouseState(state:String):Void;
	function setupMouseEvents():Void;
	function mouseEventHandler(event:MouseEvent):Void;
	function startPress():Void;
	function buttonDown(event:TimerEvent):Void;
	function endPress():Void;
	function draw():Void;
	function drawBackground():Void;
	function drawLayout():Void;
}
